package com.fyb.service;

/**
 * @Author：MR.FANG
 * @name：IfService
 * @Date：2025/5/13 上午11:22
 */
public class IfService {

//    public String getToDo(String day){
//        if("Monday".equals(day)||"Tuesday".equals(day)||"Wednesday".equals(day)){
//            return "今天上英语课";
//        }else if("Thursday".equals(day)){
//            return null;
//        }
//        return null;
//    }

    public static String todo(String day){
        CheckDay checkDay = new CheckDay();
        return checkDay.day(Day.valueOf(day));
    }


    public static String todoNew(String day) {
        CheckDay checkDay=new CheckDay();
        return checkDay.dayNew(DayNew.valueOf(day));
    }

    public static void main(String[] args) {
//        String monday = todo(Day.MonDay.name());
//        System.out.println(monday);

        String s = todoNew(DayNew.Wednesday.name());
        System.out.println(s);
    }
}
